package com.fc.common.log;

/** 
 * @ClassName: LoggingEntity 
 * @Description: TODO
 * @author wanghw 
 * @date 2016年5月25日 
 */
public class LoggingEntity {
	
	private String env;
	
	private String root_path;
	
	private String app;
	
	private String module;
	
	private String controller;
	
	private String operate;
	
	private String request_uri;
	
	private String request_get_paras;
	
	private String request_post_paras;
	
	private Long dateline;
	
	private String ip;
	
	private String server_ip;
	
	private String logs;

	private String createdate;

	public synchronized void addLogs(String log){
		log = log.replaceAll("\r|\n", "");
		if(logs== null || "".equals(logs)){
			logs = log;
		}else{
			logs += "\n" + log;
		}
	}
	
	

	public String getOperate() {
		return operate;
	}



	public void setOperate(String operate) {
		this.operate = operate;
	}



	/**
	 * @return the env
	 */
	public String getEnv() {
		return env;
	}

	/**
	 * @param env the env to set
	 */
	public void setEnv(String env) {
		this.env = env;
	}

	/**
	 * @return the root_path
	 */
	public String getRoot_path() {
		return root_path;
	}

	/**
	 * @param root_path the root_path to set
	 */
	public void setRoot_path(String root_path) {
		this.root_path = root_path;
	}

	/**
	 * @return the app
	 */
	public String getApp() {
		return app;
	}

	/**
	 * @param app the app to set
	 */
	public void setApp(String app) {
		this.app = app;
	}

	/**
	 * @return the module
	 */
	public String getModule() {
		return module;
	}

	/**
	 * @param module the module to set
	 */
	public void setModule(String module) {
		this.module = module;
	}

	/**
	 * @return the controller
	 */
	public String getController() {
		return controller;
	}

	/**
	 * @param controller the controller to set
	 */
	public void setController(String controller) {
		this.controller = controller;
	}

	/**
	 * @return the request_uri
	 */
	public String getRequest_uri() {
		return request_uri;
	}

	/**
	 * @param request_uri the request_uri to set
	 */
	public void setRequest_uri(String request_uri) {
		this.request_uri = request_uri;
	}

	/**
	 * @return the request_get_paras
	 */
	public String getRequest_get_paras() {
		return request_get_paras;
	}

	/**
	 * @param request_get_paras the request_get_paras to set
	 */
	public void setRequest_get_paras(String request_get_paras) {
		this.request_get_paras = request_get_paras;
	}

	/**
	 * @return the request_post_paras
	 */
	public String getRequest_post_paras() {
		return request_post_paras;
	}

	/**
	 * @param request_post_paras the request_post_paras to set
	 */
	public void setRequest_post_paras(String request_post_paras) {
		this.request_post_paras = request_post_paras;
	}

	/**
	 * @return the dateline
	 */
	public Long getDateline() {
		return dateline;
	}

	/**
	 * @param dateline the dateline to set
	 */
	public void setDateline(Long dateline) {
		this.dateline = dateline;
	}

	/**
	 * @return the ip
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @return the server_ip
	 */
	public String getServer_ip() {
		return server_ip;
	}

	/**
	 * @param server_ip the server_ip to set
	 */
	public void setServer_ip(String server_ip) {
		this.server_ip = server_ip;
	}

	/**
	 * @return the logs
	 */
	public String getLogs() {
		return logs;
	}

	/**
	 * @param logs the logs to set
	 */
	public void setLogs(String logs) {
		this.logs = logs;
	}

	/**
	 * @return the createdate
	 */
	public String getCreatedate() {
		return createdate;
	}

	/**
	 * @param createdate the createdate to set
	 */
	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}
}
